{layout name="layout/main" /}
{:breadcrumb(['个人中心:admin/profile/index', '修改密码'])}
<div class="row">
    <div class="col-lg-5">
        <div class="card">
            <div class="card-body">
                <form action="{:url('admin/profile/password')}" method="post" class="input-form needs-validation" novalidate>
                    <div class="modal-body">
                        <div class="mb-3 row">
                            <label for="old" class="col-sm-3 col-form-label">原密码 <font color="red">*</font></label>
                            <div class="col-sm-9">
                                <input type="password" class="form-control" id="old" name="old" autocomplete="off" required>
                            </div>
                        </div>
                        <div class="mb-3 row">
                            <label for="password" class="col-sm-3 col-form-label">新密码 <font color="red">*</font></label>
                            <div class="col-sm-9">
                                <input type="password" class="form-control" id="password" name="password" autocomplete="off" required>
                            </div>
                        </div>
                        <div class="mb-3 row">
                            <label for="check" class="col-sm-3 col-form-label">确认新密码 <font color="red">*</font></label>
                            <div class="col-sm-9">
                                <input type="password" class="form-control" id="check" name="check" autocomplete="off" required>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        validation_form('.input-form', function (){
            location.reload();
        }); 
    })
</script>
